/*
 * @Author: quit
 * @Date: 2021-12-06 15:12:09
 * @LastEditTime: 2022-01-15 15:21:41
 * @Descripttion: 上传文件api
 */
import request from '@/utils/request'

/**
 * @description: 上传图片
 * @param {*} id 项目ID 文件数据
 * @param {*} data
 * @return {*}
 */
export function UploadImg(id, data) {
    return request({
        url: `uploadWeb/imgUpload/${id}`,
        method: 'post',
        headers: { 'Content-Type': 'multipart/form-data' },
        data
    })
}

/**
 * @description: 删除上传图片
 * @param {*} data
 * @param {*} appid
 * @return {*}
 */
export function deteleImg(data, appid) {
    return request({
        url: `uploadWeb/delImg/${data}/${appid}`,
        method: 'get'
    })
}
